﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace XingFuStudio.Pioneer.Container.Interface {
    /// <summary>
    /// 数据持久化接口
    /// </summary>
    public interface IPersistence {
        /// <summary>
        /// 获取持久化信息的XML对象
        /// </summary>
        XElement GetPersistenceXML();

        /// <summary>
        /// 赋值持久化信息的XML对象
        /// </summary>
        /// <param name="xml">持久化的XML</param>
        void SetPersistenceXML(XElement xml);
    }
}
